package io.jpom.model.log;

import io.jpom.model.BaseJsonModel;

/**
 * 系统监控记录
 *
 * @author Arno
 * @date 2019/9/16
 */
public class SystemMonitorLog extends BaseJsonModel {
	/**
	 * 表名
	 */
	public static final String TABLE_NAME = SystemMonitorLog.class.getSimpleName().toUpperCase();

	private String id;
	/**
	 * 节点id
	 */
	private String nodeId;
	/**
	 * 监控时间
	 */
	private long monitorTime;
	/**
	 * 占用cpu
	 */
	private double occupyCpu;
	/**
	 * 占用内存 （总共）
	 */
	private double occupyMemory;
	/**
	 * 占用内存 (使用) @author jzy
	 */
	private double occupyMemoryUsed;
	/**
	 * 占用磁盘
	 */
	private double occupyDisk;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNodeId() {
		return nodeId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}

	public long getMonitorTime() {
		return monitorTime;
	}

	public void setMonitorTime(long monitorTime) {
		this.monitorTime = monitorTime;
	}

	public double getOccupyCpu() {
		return occupyCpu;
	}

	public void setOccupyCpu(double occupyCpu) {
		this.occupyCpu = occupyCpu;
	}

	public double getOccupyMemory() {
		return occupyMemory;
	}

	public void setOccupyMemory(double occupyMemory) {
		this.occupyMemory = occupyMemory;
	}

	public double getOccupyDisk() {
		return occupyDisk;
	}

	public void setOccupyDisk(double occupyDisk) {
		this.occupyDisk = occupyDisk;
	}

	public double getOccupyMemoryUsed() {
		return occupyMemoryUsed;
	}

	public void setOccupyMemoryUsed(double occupyMemoryUsed) {
		this.occupyMemoryUsed = occupyMemoryUsed;
	}

	@Override
	public String toString() {
		return "SystemMonitorLog{" +
				"id='" + id + '\'' +
				", nodeId='" + nodeId + '\'' +
				", monitorTime=" + monitorTime +
				", occupyCpu=" + occupyCpu +
				", occupyMemory=" + occupyMemory +
				", occupyDisk=" + occupyDisk +
				'}';
	}
}
